package com.team11.server.controller.student;

import com.team11.server.pojo.student.ProjectCourse;
import com.team11.server.service.student.StudentProjectCourseServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author DuKang
 * @Date 2021/7/11 14:28
 * @Desc:
 * @Version: 1.0
 */
@RestController
@CrossOrigin
@RequestMapping("/student")
@Api(tags = "学生接口")
public class StudentProjectCourseController {
    @Resource
    private StudentProjectCourseServiceImpl studentProjectCourseService;

    @GetMapping("/courseList")
    @ApiOperation(value = "获取项目课程表")
    @ApiImplicitParams({
            @ApiImplicitParam(value = "学生学号",name = "sNumber"),
            @ApiImplicitParam(value = "日期",name = "kcDate"),
            @ApiImplicitParam(value = "项目名称",name = "kcName"),
            @ApiImplicitParam(value = "实训老师",name = "sxtName"),
            @ApiImplicitParam(value = "责任老师",name = "zrtName")
    })
    public Object getProjectCourseList(String sNumber,String kcDate, String kcName, String sxtName, String zrtName){
        return studentProjectCourseService.getProjectCourse(sNumber,kcDate,kcName,sxtName, zrtName);
    }
}
